Changed autoloader to a seperate class, so it can be used as a script for unit testing.