archiver: initial port to new code structure

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>