MDL-45273 quiz: move admin settings into classes folder.
MDL-45273 remove the need for quiz settings.php to include locallib.php.
MDL-45273 only create the quiz settings if necessary.
MDL-45273 quiz: Fix codechecker issues.