rewritten WebSocketUpgrade
implemented error handling in upgrade mechanism
WebSocketFrame #isValid now returns an error object instead of a boolean
some small code improvements
Merge pull request #17 from bodokaiser/refactor-internals

refactor module internals