Make sure we respect the environment data dir.
Respect the environment logs dir.
Accommodate a missing .ssh directory.
Be more flexible on the init conf names.
Handle the missing nonce.txt case.
Set LogsDir for test.
Convert nil resources to empty strings.
Split the backups create API code into its own file.
Use more genuine test data.
time.Minute is already a duration.
Document some constants and eliminate the global vars.
Drop the metadata() method.
Get rid of unnecessary constants.
Use Fatalf().
Use format instead of ChecksumFormat.
Merge pull request #844 from ericsnowcurrently/backups-fix-paths

Fix backups paths.

Some of the hard-coded paths we are using for backups don't work for local provider.  This patch fixes that.  It also sets the stage for future work to eliminate the hard-coded paths completely.

Most notably this patch registers a new resource on the API server.
Fix gocheck imports.
Added api client
moved ClearReboot
Merge pull request #819 from ericsnowcurrently/backups-separate-api-files

Split the backups create API code into its own file.