MDL-43535 webservices: Final deprecation of moodle_* ws functions

Upgrade script to remove all deprecated functions.