Factor out HTTP(S)Connection -> ConnectionCls, and cleanup.

Also removed the need to None-ify global `ssl` module in tests.