Continuing image order widget

Added AJAX call and handler to get images assigned to a gallery, if any,
and all images if none are assigned.
Added static galleryById to BackendController

Function takes a galleryID from an ajax call and queries the database
for gallerydata, the returns a gallery object.