Hook tool for sending metrics from charm.

A hook tool metric-add is made available to charm authors for sending metrics to state.
Add a test to ensure metrics can't be by an entity that is not authenticated to.