SSL enabled DefaultHttpClient is properly set to the client mode (before...

After the SSLEngine creating, before the SSL parameters are set the engine should be set into the client mode. Otherwise the SSL parameters are configured as for a server. 

This causes following problems:
- communicating with servers which use SNI: The client and the server perform SSL handshanking using SSLv2 (since client is configured to support it), which doesn't support SSL server_name extension. Thus the server cannot find the proper certificate.
- certificates that are issued for wildcarded domains like (*.domain.com) are not accepted by the client

Location: DefaultHttpClient.internalConnect

Signed-off-by: Vladyslav Oleniuk <vladyslav.oleniuk@kiwigrid.com>