Refactor connection class to handle both connection loss and expiration better in some of the more complex methods. Part of CONNECTORS-898

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