Move to storing the nonce1 in the work struct instead of the sessionid for the now defunct first draft mining.resume protocol.
Use the sessionid as passed on stratum connect to attempt to resume a connection once and then clear it if it fails, to use a new connection.