Merge pull request #111 from flaviogrossi/master

some fixes for websocket protocol 76 - I've tried to reproduce the whitespace test but couldn't trigger it. As the RFC doesn't stats that whitespaces are not allowed I'm keeping it. let me know if it breaks any application (it hasn't broke my apps and tests)