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
move this into export_test.go and I think we're good. It leaves the MetricBatch type in state where it should be, but only the tests can actually exercise the functionality so far.