fixes in play and gm scripts
fix error in socket handling in gm_client
use ?DBG instead of ?D
refactoring - WIP untested
fix gm.sh
WIP
starting game
Basic game playing
gm kicks off game and dies
remove two gm states

gm handles many game simultaneously:
there is no need for states 'playing' or 'tournament'
move msg construction to sxml
don't restart dying rooms
fix startup for ttt
don't restart ttt's
export gm:next_player/2
room tracks gm and players connections

and notifies about crashes
minor fixes
don't check for inet:setopts return

handling of closed connection is done via {tcp_closed, Socket} message
fix bad return that crashed gen_server
do not double encode