Implemented delete-all-but-n and delete-older-than. Implemented compacting. Added the --dry-run option, which currently works for deleting and compacting, but not restore or backup. Added output to console for use with dry-run, and added option to redirect this to the log for use in service mode.