Differential graded Lie algebras and stability problems in geometry