Start the most needed backups first

Uses a somewhat-hackish scoring algorithm to decide which backup
to start first, but it's better than alphabetical order!
Reorganize script to be less hacky

A class for caching, less shady delete logic, etc.