Comets, Popular Culture, and the Birth of Modern Cosmology