Added support for limited-size buffer.
Implemented script makewsmessage.py for generating WebSocket frames.
This is used for unit testing.