modified the logic of the connection methods to correctly handle server certificate verification.
modified the signature of manuallyConnectToEndpoint
Default action is now to accept the server certificate by default (this has never been released before so its no problem to change the behaviour)
remove some spaces