Added  managesRelation() from UploadField

In 3.1 rc2 the item edir form throws managesRelation not found on GalleryUploadField, just copied teh code from UploadField