Changed to PSR-4 class loader.

I simply copied the example provided [here](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader-examples.md).