add domain file back for back-compat
add error for invalid backup file
support writing to stdout & stderr
Merge pull request #4 from uber/domain+fd

Support stdout as backupFile and add domain.