Lie Pseudogroups And Mechanics