fix hixie76 protocol

- correctly handle rawDataReceived buffering
- send the closing frame to the client before losing the connection
- send websocket upgrade header before receiving the challenge to properly
  support haproxy
fix message extraction from frame in hybi protocol when the client sends unmasked data
Merge pull request #112 from flaviogrossi/master

some fixes for the hixie protocol