Move autoloader to cms.php