Hook tool for sending metrics from charm.

A hook tool metric-add is made available to charm authors for sending metrics to state.
It would be better to use the `PatchUnitResponse` helper, and avoid calls through to the API server.