Apply diff to a different object

I am using deep-diff to generate a diff object that can be sent to clients when an object changes.
Added browser support & tests. Refactored export.