Made PlainSocketFactory non-final; improved SSLSocketFactory#connectSocket() to accept plain sockets as input