Dynamics of Foliations, Groups and Pseudogroups