adding socket.io server
wiring sockets with the app
resolving conflicts