TLS v1.1 and v1.2 support, plus test project refactored to use "same" socket factory as library