S3 storage: enable archiving in addition to deleting unused segments
default to archiving segments + docs
add archive task
consolidate path functions
fix docs