Configuration loader refactoring

@norzechowicz Just idea that you probably can use Symfony OptionResolver component for such things. It is additional dependency but OptionResolver is quite lightweight.