MDL-18229 gradereport: Fixes and improvements from review.

Added pagination back in with some general fixes.