Hook tool for sending metrics from charm.

A hook tool metric-add is made available to charm authors for sending metrics to state.
Metrics are recorded against units. Charm URL is additional information, not the entity metrics are recorded against.