Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=54507
Don't start expiring sessions until the web application is fully started. Stop expiring sessions as soon as the web application is stopped.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1441403 13f79535-47bb-0310-9956-ffa450edef68
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=54507
Don't run background processing if the context isn't started.

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