Added disconnection support.
added join/leave support.
added support for correctly pausing/unpausing the game.
lots of work on the different templates.