When Earth first formed from clouds of dust and gas, it was devoid of an atmosphere. But as the young planet is pummelled by asteroids, a period of extraordinary upheaval begins.