Improve performance of mapping graders to criteria

This continues the pattern of doing bulk operations for mapping graders
to groupings, which solves the n+1 query problem.

Tested:
- rspec
- rake test:units
- rake test:functionals
- Ruby 2.1.2, Postgres