Hamiltonian Mechanics of Gauge Systems (Cambridge Monographs on Mathematical Physics)