Fixed the error messages and function names

In the previous implementation no readable messages were sent.
Probably the moodle_exception() has changed meanwhile.
This commit fixes the exception messages by using the moodle
message strings when available and providing new ones when not.

Got rid of unnecessary "moodbile/uniappws" occurrences in the function
names.