Hook tool for sending metrics from charm.

A hook tool metric-add is made available to charm authors for sending metrics to state.
Also, add a failing test and assert expected error for this.