Use CURL for the https request

See inline documentation
Merge pull request #4 from mfairchild365/master

Use CURL for the https request