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.
Merge pull request #7 from nickwest/master

Added Curl connection method to ApiConnector::connectToAPI()