Upgraded for Moodle 2.5, with strict Code rules and Unix LF.

Signed-off-by: Joseph Rézeau <moodle@rezeau.org>