[templating] fixes

- fix twig extension classname
- add templating helpers for pagination
Merge pull request #3 from mixkorshun/master

Templating fixes