Bug 1072757 - Implement SettingsCore

same, let's extract this in a `setup`