Added support of jinja2 global objects

http://jinja.pocoo.org/docs/api/#the-global-namespace