Added isDirty check for model

Autosave only when needed.
Should add a backup call on startup ?
When I used this._internals.backupValues an autosave would infinite loop.

We also need to backupJson manually.