The Tangent Functor Monad and Foliations