Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=56383
Properties for disabling server information and error report are added to the o.a.catalina.valves.ErrorReportValve. Based on the patch provided by Nick Bunn.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1589967 13f79535-47bb-0310-9956-ffa450edef68
More defensive coding around some XML activities that are triggered by web applications and are therefore at potential risk of a memory leak.

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