Before Apollo astronauts could land on the Moon, NASA had to teach them how to survive missions nobody had ever attempted.