3235: Split GroupsController#contents logic out to load_searchable_objects.
3235: Fix SQL query.
3235: Add test case.
Merge branch '3235-all-contents' refs #3235