Introduced WS_FRAME and WS_ERROR_FRAME
Fixed various issue related to big binary data.
Simplified code.
Better debug output messages.

Still need testing, and checking all cases.