The local Gromov-Witten theory of curves