Brings the main code up to PSR0 code standard for autoloading.

Currently all the requires have been commented out to make it easier to fix any problems should this not work as expected ;-)