[FEATURE] Introducing Phile_Template as new service

move twig template engine into a plugin and introduce Phile_Template as a service. also added new events.