changed hashtable_foreach and websockets

can now respond on websocket handshakes