Hook tool for sending metrics from charm.

A hook tool metric-add is made available to charm authors for sending metrics to state.
@tasdomas It makes the failure mode more confusing. If the metrics fail to send the hook will be marked failed but the relations will still have been setup. There's some information about it in the implementation doc. We should check with @fwereade if the current proposal is ok for now