Implements socket.io support in Sails