Equivalence, invariants and symmetries of vector distributions and related structures : from Cartan to Tanaka and beyond