Refactor rotate backups script out.

One, we can now reuse the rotate module in both mysql backups and
filesystem backups.  Two it will make it easier to do a push based
backup script.