Make tenant-specific template loading work.

for custom 500 / 404 error pages work, etc.