Some cleanup in nn_ws_handshake

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>