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 ah, I was using the unit charmURL originally but I encountered that "Fun detail" and thought I was doing something wrong