Linear and Autonomous Magnetization Dynamics in spin-torque Auto-Oscillators: a Lagrangian Approach