Removed hardcoded endpoint

In the getOrgId funtion there was a hardcoded endpoint that was causing
connection errors.
Changes to allow invalid SSL

Added new SSLSocket implementation to bypass invalid certs.
Also, minor fix merged from main repo.