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
findAndModify('metricDoc', query: {'sent':false}, update: {'sent': true}) could be used to update the 'sent' state atomically outside of a transaction.