Added support for a metrics collections

insert a batch of metrics instead of one at a time

only allow metrics to be added if the unit is alive
use right version of charm as per master
Merge pull request #466 from mattyw/add-metric-collection-to-state

Added support for a metrics collections

Added a metric collection for storing unit metric in the state server

Only support for:

* adding new metrics
* getting lists of unsent metrics
* setting the sent flag
Clean up the backups package.
Address review comments from axw.
Rename backup to backups.
Clean up DBConnInfo a bit.
Add a test for the files that will be backed up.
Move runCommand() to core utils.
Escalate log levels in backups and add more logged info.
Clarify the use of the path separator in backups.
Stop using named return arguments in backup's prepareTemp.
Use NewHashingWriter instead of NewSHA1Proxy.
Clarify what is going on when we build the backup tarball.
Fix order of operations in backups test setup.
Fix formatting in backups tests.
Clean up getFilesToBackup and pull out hard-coded paths.
Use the SameContents checker in backups tests.
Merge pull request #462 from ericsnowcurrently/backups-cleanup

Clean up the backups package.

This is intended as an idempotent change in preparation for further patches.
Revert "Merge pull request #289 from waigani/manual-prov-key"

This reverts commit 2d129e3705fb738e25a16e1c34778f3083fb8450, reversing
changes made to a5ae823af408136787cd4abc574e0c2c18ba85ba.