Introduction to Hamiltonian Fluid Dynamics and Stability Theory