GH-266 store rendered template in global

https://github.com/linkedin/dustjs/issues/266