Switch to composer for autoloading.

Removes existing custom autoloader and use composer to generate an autoloader.
`header` can be removed from here and instead maybe put in the Exception handler code upstream?