added test for n'th degree dependency
Simple TemplateEvent support
Changes to demos to use new event type