[WIP] Add serializer interface

Targets #161.
I think I said that it is not derived from `ws_object`, but that it has an internal state, which serves as a context for yaijl.
object != object.