Issue #2208 add last synced state to model

Allows checking for difference between current (dirty) model and last synced state.