Moodle 25 stable

Hello,

this is a first pull request. This correctes various warnings and errors while using the module on 2.5. I guess some of the issues apply to 2.4 as well.

Hope you like.

Kind regards,
Daniel