MDL-45029 core_course: set aggregationcoef while creating a new course module
Merge branch 'MDL-45029-27' of git://github.com/lameze/moodle into MOODLE_27_STABLE

Conflicts:
	course/modlib.php
MDL-46904 core_task: Gracefully handle rubbish entries in the tasks table.