fixes error pages and adds referer link to error page if it comes from the application

(0) -30 -10 -1 +1 +10 +30 +100 tip

mercurial