Common base class for preferences that have two selectable states, persist a
boolean value in SharedPreferences, and may have dependent preferences that are
enabled/disabled based on the current state.