Fix whitespace
Fix loading of error page templates
Move error/common template to partials directory