Hooking up socket.io with dependency injection