GalleryController brought up to the place where it was before this whole refactoring (AJAX reordering of images works)