Ensure that the result of calling HttpServletRequest.getContextPath() is neither decoded nor normalized as required by the Servlet specification.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc8.0.x/trunk@1644954 13f79535-47bb-0310-9956-ffa450edef68
Fix a collection of RewriteVlave issues along with some refactoring and clean-up to support those fixes.

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