Refactored the File Loaders to extend an Abstract Loader

Refactored the File Loaders. It works fine here, I made some tests also removing the Yaml component to make sure it will not crash because of the YamlFileLoader added at ConfigServiceProvider (in case the app doesnt use it). Seems legit, but it would be nice if you could test somewhere else.