MDL-43089 finish this phase of cleaning editlib.php
MDL-43089 fix max mark editing.