Added map socket property set on map.change and rewrote some code to use map property instead of hardcoded value
Removed old duplicate map.change handler
Wrote Client class, moved socket event handlers into there