some restructuring

 * add context_of
 * rename ship_of_mission to ship_of
 * pass mission object instead of mission_id to many functions
 * use global table mission contexts instead of missions