Added method getLocalChanges to support querying the local changes of a
model.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>