Added support for state updates.
Established protocol for setting map.
Made the server more crash resiliant when clients reset the connection.