Hamiltonian treatment of asymptotically anti-de Sitter spaces