Tiled Gallery: Whitelisting to template rendering.

Templates and partials are now whitelisted, so that no wrong files are included by mistake.