Use php-curl to download HTTP/FTP URLs instead of using the wget command (closes #3197)
Corrected handling of the `authenticated` property in Class.Repository.php (refs #3197)