Move autoloader to lib