Add function to load class, spl __autoload stack and routes.