Limits on Dark Radiation, Early Dark Energy, and Relativistic Degrees of Freedom