Make debug panel work for templates.
Add better 404 page.