Template: Changed Template,before event to be Template,beforeProcessing-templateName and Teplate,beforeOutput-templateName
Events: Moved the triggering of events to debug level 3 (from 4)