MDL-21415 reports: Adding support of groups to course participation reports

Also introducing new api groups_print_course_menu_allgroups() that generates a selector for all groups in course"