I'll review this file later, in the nemo context this code does not make any sense at all since everything should be handled by accounts framework, but basic settings related to the accounts that qmf can handle are good to have, in case someone wants to use this code in other context, so I vote to keep them. App related settings that can't/should not be saved in qmf will go away.