MDL-51718 weblib: Allow moodle_url scheme to be set