Deformation theory via differential graded Lie algebras