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
@fwereade I'm afraid I don't know what you mean. This is the approach that is used in other places (like user)