Updated SOCKS proxying to work with SSL soket factory.