MDL-47893 gradebook: Fixes for progress bar and output.

Outputs how many grades were updated.
Fixed grade overrides occasionally not working.
Updated behats.