MDL-43749 mostly fix the edit quiz page.

I think everything works except:
1. Repaginate
2. Save maxmark for a question.
3. On the order and paging tab, reorder questions
4. On the order and paging tab, move selected to page.