Graded Lie algebras of deformation theory revisited, with new applications to Lie algebras and cohomology