Before launching SpaceX, Elon Musk was working on a philanthropic project about sending a greenhouse to Mars, and potentially laying the groundwork for creating a passenger rocket in space.