Stability Theory for Hamiltonian Systems