rebased against adaptv ribs2

too many merge conflicts in early commits,
so im squashing everything into one commit.
Included is websocket_server (RFC 6455),
webserver (for serving files), and some
changes to json and hashtable's foreach.
This is also fully updated against
adaptv's ribs2