Basic implementation of saving.
Basic implementation of saving.

When the objects are stored, ensure that they have a "type" member
that makes it possible to determine their class/purpose.

pjanouch/logdiag,pjanouch/logdiag