MDL-43098 Update Quiz data layer: added basic slot and section methods
MDL-43089 Create Quiz Edit Renderer

First iteration built on existing data layer. Needs MDL-43098
new data layer to go further

Just implement the course edit view as the edit quiz view. Will later refactor to reflect quiz

Conflicts:

	mod/quiz/edit.php
MDL-43089 Create Quiz Edit Renderer (2) tidy up
MDL-43089, general improvements including add menu, paging, repaginate, fix drag and drop

The list of improvements include:
display question title, description and marked out of field
adding the add-menu to editing page
adding questionbank to the add menu
adding page number and getting question_info
tidy up menuw and paging
Update data layer to fit MDL-43749
moving the addmenu to left and improve paging
Implemented drag and drop of slots
Adding rapaginate class and its unittest
repaginate to the original pagination after drog-n-drop
update question maxmark using ajax
Moving page number within li and adding CSS for opacity
fixup use of deprecated function.
sorting out the error messages on quiz summary page and questionbank
Putting ppage number to a div and getting rid of css
Move the edit renderer into classes.
MDL-43089 major refactor. Concept works but needs a good tidy up.

Generally fix errors, move files, create classes including:
remove junk use statement.
Move editmaxmark string to quiz lang file.
move rendering code from lib.php to renderer.php.
Fix a whole bunch of codechecker issues.
corrected dummy test sections
move code from renderer->editrenderer
Fix remove question.
move some bits editlib->edit_renderer
building relevant js files
Fix maxmark editing
More tidy up. Update grades in rest.php when needed.
finish this phase of cleaning editlib.php
fix max mark editing.
fix drag slot errors from refactor
MDL-43089 Adding some behat tests.

also Make add question add item on the same page.
MDL-43089 Another refactor and improve UI

Including:
correct namespacing in update max mark
drag drop slots update page
Remove the slot edit menu. Put delete icon in its place.
make marked_out_of_field use only one span
background colours for slots
give spacing to slot edit icons
include repaginate options on quiz edit page
remove unused class
increase width of activity details
put save grades form elements on same line
removed unnecessary classes and code
MDL-43089 Develop paging. Mid first draft

join pages mid first draft
improved repaginate class
call repaginate using newer approach
looping through activities. Found pages
display one add menu per page
display repaginate popup when at least 2 questions
adding css for Edit marked out of
edit max grade form display inline and reduce width
add menu moved inside page li element
added slot actions divs for drag and drop spinner
add repaginate page
MDL-43089 Improve page linking, repagination and drag and drop of slots

Including the following fixes
fixed reference to repaginate class
get link and unlink page buttons displaying correctly
creating a util.page js class
util-page now loaded correctly in browser
slotnumber+1 makes repaginate work correctly
using latest js page.getId method
remove unused code
use js method util.slot.getNumber for slot number
comment out js link page functionality
reorder slots when slot dragged
reorder slots when slot removed
refactor reorder_slots()
fixed codechecker issues