Metrics validation support in the uniter.

Now that charms have a way of declaring the metrics they will report, validation of metrics will be performed by the charm package, when the metrics is added using the hook tool add-metric.

In addition to this, the MP fixes the way local charms are added to the charms collection in state, so that the Metrics component is also stored.