[WIP] Add serializer interface

Targets #161.
Having an additional buffer here doesn't make any sense. We can work on the corresponding `ws_connbuf` in the connector directly.