See Foliations folder in Geometry, in particular maybe the two books by Candel and Conlon.
nLab page on Foliation