Moodle 2.5 patch - invalidate config cache when saving settings (should tidy this up to use plagiarism_complilatio instead of plagiarism at some point
fix php warning
update capability names and add english strings
fix some deprec calls to context functions
merge upstream branch master. Fixed 2 errors in lib.php