Make the Twig Extension a public service

It's first step towards making the Piwik tracking code available also for
other template engines.