MDL-18229 gradebook: Additional fixes.

Random foo left in options. (test code)
Allowed editing link for Course total.
Fixes based on Apu's review.