refactored settings.js, it now supports inheriting config sets
deep copy was harder than I thought, reverting