Address some SSL handling issues.

Our increasingly extensive testing uncovered some deficiencies related to SSL. This branch addresses those and a client issue when it connects to multiple job servers.