implemented ability to write frames

You can now write your payload directly to an instance of WebSocketStream.
The head information are partly extracted from the payload (e.g. length) but
also from the flags defined in "wsstream.writeFrameState" like fin, mask, etc.
Currently we are missing body write tests (head tests are available).