Replace the use of PHP's file_get_contents with cURL

Many hosts prohibit the use of file functions for remote URLs.