Port storeconfig functionality to trunk (with a FIXME about the new resources configuration which will need some gets to be able to be persisted).

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