Function in MoodleRestUser updated
Fixes to MoodleRestUser class
UserSyncTask added