Derived algebraic geometry and representation theory I