NASA is poised to launch a robotic geologist to Mars. Before it blasts off, what goes into planning that trip?