Added node id and key to websocket negotiation phase. And permittion checking to commands.