Binds global data to Twig environment.

This way, it is possible to use Twig::set_global and Twig::bind_global
to access variables anywhere in the template.
Merge pull request #5 from arteymix/master
Adds support for custom tests.