Java 7 <> police

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1482587 13f79535-47bb-0310-9956-ffa450edef68
Refactor handling of JAR resources so that JAR files containing resources (including WARs) are not permanently locked.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1482590 13f79535-47bb-0310-9956-ffa450edef68
Add the first part of the deletion tests for the auto-deployer.
Note: These tests identified another JAR locking issue (fixed in r1482590)

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1482591 13f79535-47bb-0310-9956-ffa450edef68
Avoid NPEs when attempting to destroy contexts that failed to start.

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