Add error pages

Made main template into a partial, and used it for error pages as well. Lovely.