Adds nodejs websocket back in
Fixed encode, simplifies decode, adds more test