The Topology of Surfaces of Constant Energy in Integrable Hamiltonian Systems, and Obstructions to Integrability