Australia has agreed to one of the most daring space missions to Mars ever attempted.