Merge pull request #73 from eguaj/1.4-A2786

Corrected indentation of checkValidContextDirChars (refs #2786)
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)