Added new functions to MoodleRestOption
MoodleRestMessage updated with methods to retrieve messages