Prefer curl over file_get_contents

When downloading from internet curl is more capable and easier to debug than file_get_contents, change the download class to use curl if available.
* Curl will work when allow_url_fopen is turned off
* Curl allow GET,POST, PUT requests
* Curl allow traversing proxies
And other that make curl IMHO a better choice as a default