TemplateRequestHandler: pass on args

When a file is included, the return value is now
passed to the template. A modular system can now
be built, where each file returns certain settings,
to be used by the template handler.