Functional inequalities on path space of sub-Riemannian manifolds and applications. (September 2021)