Moves all the socket.io client code from the controllers to the client-app module