Added Curl connection method to ApiConnector::connectToAPI()

This allows for connections when allow_url_fopen is unavailable as is often the case on shared or security hardened servers.