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.
MDL-47132 quiz: move the remains of editlib.php to locallib.php