Review of the MOODLE_25_STABLE branch for a Moodle 2.6 version

Hi,

I have security and style-reviewed the MOODLE_25_STABLE branch for a Moodle 2.6 instance and thereby fixed some issues I encountered.

Could these be integrated?

Best regards, OdyX