Commit feature: save data when application enters background or terminat...

...es.