Introduction to Hamiltonian fluid dynamics and stability theory. (2019)