Added new event hooks for plugin and template installation/update