Wiring up socket.io for use