Ballistic missiles for warfare evolved into rockets destined for exploration. Now commercial space companies are also building spacecraft and selling tickets for future tourist flights.