MDL-41256 course: improved debugging on course creation
Merge remote-tracking branch 'MDL_41256/MDL-41256-master' into MDL-41417
So I can build my fixes onto of theirs (Their commit fixes error messages I use
adds duplicate idnumber and shortname checks to update_course, ads validation code to edit_form and strips the now duplicated checks out of externalibs update_course