fire events on template updates

Fire an event on template save events. This will allow plugins to hook into this action. Similar event on delete events.