Adds autoloader so classes are cleanly loaded.