MoodleRestMessage updated with fewer methods using MoodleMessage
Additional checks in sendMessage method
MessageDialog updated with new params of sendMessage method