Refactored different members out in favour of SPJSONDiff and policies. Added support for embeddedObjects in 1-1 and 1-* relationships.