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

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