Incremental update toward unit testing backup functionality.

Next step is actually to refactor some logic that will make testing
easier. I'm operating under the assumption that if something is really
hard to test (like backup, currently), then I probably need to rethink
its design. In this case, my plan is to move logic that doesn't directly
involve the backup page into a new class and handle it there.