Reduce sql queries for groupname tests. (STUD-1039)

Conflicts:
	cms/djangoapps/auth/authz.py
In OpenEndedModule latest_score and all_score calculate sum of rubric scores every time for ML grading.
ORA-72