SettingsAccessor: Introduce prepareToSaveSettings

Factoring out code out of ::saveSettings

Change-Id: Iba2e88acef55e244b069ec9f3b31367cd809160f
Reviewed-by: Daniel Teske <daniel.teske@digia.com>