archiver: initial port to new code structure

Signed-off-by: Jake Cowton <jake.calum.cowton@cern.ch>