some techincal modification:
- making the socket.io server as a class (so it can be used either as standalone or built in application)
- simplify the local storage
removing unnecessary comments