add interface for subordinate charm to provide image modification scripts

From Paul Collins via LP:
https://code.launchpad.net/~pjdc/glance-simplestreams-sync-charm/image-modifier-hook/+merge/226242

Minor changes in MirrorsConfigServiceContext.__call__ for readability and to fix an undefined ref in the handling of the keyerror exception.