In order to enable define in Cluster element, ClusterSingleSignOn implements ClusterValve.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1645597 13f79535-47bb-0310-9956-ffa450edef68
Backport some clean-up extracted from a patch by Jeremy Boynes.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1645615 13f79535-47bb-0310-9956-ffa450edef68
Have JspC initialize its ClassLoader before the ServletContext.
This avoids the need to re-initialize the ClassLoader for every JSP being pre-compiled.
This also fixes https://issues.apache.org/bugzilla/show_bug.cgi?id=57316 by removing the code that was causing the bug.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1645619 13f79535-47bb-0310-9956-ffa450edef68
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=57324
If it is known that the connection is going to be closed when committing the response, send the connection: close header.

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