WIP: Hook tool for sending metrics from charm.

A hook tool metric-add is made available to charm authors for sending metrics to state.
I think it's best done in a separate PR, since https://github.com/juju/juju/pull/617 addresses some of the problems of saving context settings during finalization.