General Transformation Theory of Lagrangian Mechanics and the Lagrange Group