Move URL class to use autoloading