Superintegrable Hamiltonian systems: Geometry and perturbations