[WIP] Add serializer interface

Targets #161.
How is this supposed to work, anywaysß You didn't even introduce callbacks.