Hook tool for sending metrics from charm.

A hook tool metric-add is made available to charm authors for sending metrics to state.
What we actually said was that finalizeContext should be changed to make a single call to write all the relation settings and all metrics in a single api call.