The Tangent Functor Monad And Foliations