working websocket implementation, see examples/test_ws.c
websocket parser cleanup - and a fun story