Demo app cleanup

Cleanup demo app settings by introducing `EditIntPreference`, `EditFloatPreference`, and `IntListPreference`. Also extract default values into resources.