add default-hook

Add default hook for use in https://github.com/juju/juju/pull/528