Added support for a metrics collections

Added a metric collection for storing unit metric in the state server

Only support for adding new metrics and getting lists of unsent metrics