MDL-43749 now you can attempt a quiz.

Now, if you had a quiz already before the DB changes, you can attempt
it. Only edit.php and editlib.php to go.

Also, all the unit tests pass, except for editlib_test.php.