Changed registering twig extensions to be compatible with Twig 1.12.
Merge pull request #1 from zhukova/master

Сompatibility with Symfony 2.1.* (twig 1.12.*)