implemented metric validation prior to storing
make validate a method on the metricBatch
review comments fixed and fixed unit tests
return errors.trace instead of bare err
Merge pull request #1074 from mattyw/metric-state-server-validation

implemented metric validation prior to storing

Before metrics are stored we do a validation check.  Validity is defined by the charm package - This pr just adds the call to the state server. The metrics tests have been updated to check the failure modes of validation and existing tests have been updated to ensure they use valid data

http://reviews.vapour.ws/r/376/
SetFile -> SetFileInfo.
Update utils dep.
Merge pull request #1119 from ericsnowcurrently/backups-SetFileInfo

SetFile -> SetFileInfo

http://reviews.vapour.ws/r/415/
Ensure metadata file gets closed
Merge pull request #1132 from wallyworld/lp-1392514

Ensure metadata file gets closed

Fixes: https://bugs.launchpad.net/juju-core/+bug/1392514
WIP action supercommand: bare skeleton of each command in place
Register action command with juju cmd main
WIP testing supercommand: add undefined subcommand test
WIP supercommand testing: passes supercommand test
WIP testing defined: tests passing on defined
WIP testing supercommand added some meat