Added Curl method to ApiConnector::connectToApi()

This allows folks who are on shared or security hardened servers where allow_url_fopen is not available to use Curl as an alternative method of connecting to the DigitalOcean API.