Support WebSocket extensions, implemented per-frame DEFLATE.

This adds support for arbitrary WebSocket extensions and implements per-frame DEFLATE as specified by http://tools.ietf.org/id/draft-tyoshino-hybi-websocket-perframe-deflate-05.txt and implemented for example by Chrome.