Early dark energy could resolve cosmology's biggest puzzles