Add the ability to query multiple group ids

Rebased for edx-solutions. No more tests since the test structure for filtering tests is only in edx/cs_comments_service.