Introduced client socket factory and implemented default and SSL socket ...

...factories.