HTTPS clone URL

Subversion checkout URL

BUGFIX: make UploadField aware of relations to derived classes (os7140)

UploadField was relying entirely on the File::get_class_for_file_extension to
select a class, so it could only create File or Image objects. This
would break the relationships based on derived objects. Also make it
respect the FileField::relationAutoSetting.