(bug) Fix bug with setting up socket.io on server. Closes #32