Allow themes to provide custom error template.

fixes #1212, #1213
Merge pull request #1218 from halfdan/1212-themable-error-pages

Allow themes to provide custom error template.