Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=55354
Restore the context environment parameters after associating the Principle with the given user. Based on patch provided by Richard Begg.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1514470 13f79535-47bb-0310-9956-ffa450edef68
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=55399
Have the message in the response line use the locale set for the response.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1514485 13f79535-47bb-0310-9956-ffa450edef68
Have error page status message language consistent with content.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1514486 13f79535-47bb-0310-9956-ffa450edef68