Duplicate id and shortname checks for update_course, better form validation for edit_form, unit tests that verify duplicate id's and shortnames are not allowed, redundant tests in externallib.php removed