Admin can set time limit instead of teacher

Changed the max_timeout setting to max_timelimit. The distribution
algorithm now uses the value of $CFG->groupdistribution_timelimit to
set the php time limit.