trying to make headless server use less resources

new headless server approuch where the headless server has no more need to
 play the whole game for himslef anymore. Ai is controlled by the headless 
master client now. Missing are endgame stats sending and join in game feature.