A Study in Derived Algebraic Geometry, Part 1: Volume I: Correspondences and Duality