Write tests

Opening PR for discussion. The backup test passes fine, but the restore one craps out on the second database - I get a bzcat error:

    bzcat: Compressed file ends unexpectedly;
	perhaps it is corrupted?  *Possible* reason follows.
    bzcat: Undefined error: 0
	Input file = /var/folders/fd/lbnwy8051t52d_ry5_gwhc0r0000gn/T/20130516-10609-1p66a4e, output file = (stdout)

If I comment out the line that unlinks the downloaded file and try the command manually, everything works as expected. WAT.

I have a feature for the `cleanup` command, but haven't even started on that yet.