Constrained Hamiltonian dynamcis: Geometric structure and application to relativistic particle mechanics