Added support for specifying the proxy type in the connection parameters

Currently the driver sets the proxy type to socks5, which performs the hostname resolution locally. However, it is also common to let the proxy do the hostname resolution with the socks5_hostname proxy type. This PR lets the user specify the type of proxy to use in the connection parameters and doesn't change the default (socks5) if the proxyType is not specified.