Hook tool for sending metrics from charm.

A hook tool metric-add is made available to charm authors for sending metrics to state.
Please add a todo in the code so remind us to fix it later