users in course can be filtered by groups

@mattdrayer added ability to filter course users by groups and to exclude by groups it would support MCKIN-1848 and MCKIN-1829