unsavedChanges: pass a reference to the changed model

This will be useful for associating the changed attributes with a
particular model.  I am interested in having access to the model's id so
that I can batch save many models at once.
updated tests and readme