Added authorization and cookie to socket.io