Performance optimizations by caching issues/sessions

This fixes JENKINS-18155  (cache recently accessed JIRA issues) and partly fixes JENKINS-13009 (cache JIRA session shortly)