A First Course in Dynamics: Variational Methods, Twist Maps, and Closed Geodesics