clean up whitespace and long lines
some more whitespace tweaks, use full bytes in payload_length/1
turn websocket demo into a simple chat client