MDL-47064 Grades: Final fix - set the grademax from the item, not the cat

Part of: MDL-46576
MDL-47417 core_grades: reset grademax when switching from Natural

in Natural aggregation method the grademax is automatically adjusted
when switching to another aggregation method it should be reset
to 100
MDL-47420 Grades: Get unit tests passing on natural grading branch

Part of: MDL-46576
MDL-47253 core_grades: set def aggregation method to Natural

Part of: MDL-46576
MDL-47253 core_grades: display scale in Natural setup

Part of: MDL-46576
MDL-47418 Grades: Fix debugging in behat test.
MDL-47377 core_grades: Handle items with a weight of 0

They do not contribute to the category/course total any more.

Part of: MDL-46576
MDL-47377 core_grades: Behat test to cover 0 weights
MDL-47110 core_grades: Normalisation of grade weights.

This includes behat tests for this change.

Part of: MDL-46576
MDL-47110 grades: more behat tests
MDL-47110 core_grades: Update to auto_adjust_weights

Part of: MDL-46576
MDL-47110 Grades: Change how updated weights notifications are detected.

Part of: MDL-46576
MDL-47110 Grades: Get the autoupdateweight behat tests to pass.

Part of: MDL-46576
MDL-47430 core_grades: Handle negative grademin with natural weighting

Part of: MDL-46576
MDL-47430 core_grades: Adding behat test for alternative mingrade

Part of: MDL-46576
MDL-47146 core_grades: fix class names (contd)

Part of: MDL-46576
MDL-47492 behat: refer to table column indexes instead of names
MDL-47492 core_grades: Behat test for using scales and mingrade in gradebook
MDL-47430 core_grades: rename strings in Behat tests
MDL-47132 quiz: move question bank extensions to classes/question/bank

While doing this code clean-up, I noticed that the question bank pop-up was
only showing the question name, whereas it should have been showing the
question name and the start of the question text, so I fixed that.