Action, hamiltonian and CFT for 2D black holes