Switch to composer for autoloading.

Removes existing custom autoloader and use composer to generate an autoloader.