Derived Algebraic Geometry and Obstruction Theories