Refactored hooker common code to fire plugin and application hooks
Updated example usages in build and plugin install events