Remove nav from error pages
Make template variables pretty in dev mode
Make php errors pretty