Turn CI Codeigniter.php back to default and replace previous hack with hooks