Added method set_hook to have hooks installed in calling apps
Compiled the hook code using the caller's dsl
Tests that plugin hooks are run within the app that uses them and that the hooks see the settings from the app when executed
Merge branch 'master' into template_hooks
Removed superflous call to caller()