Extract the bag and tar operations to Packager and
use in the server to do them.