Git commits in Moodle 3.0.0 by Colin Campbell

commit 9901bdf7eb89f72bac099fbcc0d42f93662896f8
Author: Colin Campbell <colin@umn.edu>
Date:   Sat, 12 Sep 2015 04:23:06 +0800
Tag:    v3.0.0-beta

MDL-51305 grade: Fix slow grade operations by setting grade_item early.