properly remove users from instructor/staff groups on a course delete

@waheedahmed @symbolist @adampalay 
1) remove course_mapping in loc_mapper after removing users from course groups on delete, so that users are removed from correct groups.
2) ordered/cleaned some imports