Five 'mass extinctions' have decimated our planet since it was formed - now scientists claim the answers to two could be written in the stars.