Adding some authorization handlers in socket.io