Hypoelliptic operators and some aspects of analysis and geometry of sub-Riemannian spaces