Implemented Diff with objects instead of arrays. Fixed bug in applyPatch, added test cases and fixed broken tests.
Fixes entity->r calls.
Fixed wrong retrieval of person revisions.