Domain object serialisation
WIP - almost there