search: Cross gallery search capability

If no specific gallery is chosen in the gallery selector, the search
will be performed across all galleries in the course.