Moodle web service plugin to create a resource