Rational homotopy theory, I