Add SSL debugging

Previously there was no good way to view the SSL configuration that
was eventually negotiated.  This change ensures that that information
is logged at DEBUG.
More defensive

Guess I should test before pushing.  This change makes the SSL debug
logging a lot more defensive.
Ruby upgrade

This change upgrades the versions of Ruby that the project is built
and tested against.