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
Should we worry about a document that was marked as sent being marked as unsent again? Seems like this should be a one-way operation.