MoodleRestCall class added

This does all Rest calls