Fix composer.json repositories and autoloading