Hook tool for sending metrics from charm.

A hook tool metric-add is made available to charm authors for sending metrics to state.
@waigani yup, sorry, the API depends on exact types so exported API methods tend to live by their own rules.