Foliations and Geometric Structures