Refactoring to move some archiving stuff into base class.

--HG--
branch : ArchivingIMDI