Improve objectDiff.

* Exportable as NodeJs module.
* Proper date handling.
* Remove equal elements to save space.
* Handle array elements using IDs.
* Provide a mechanism for applying changes.
* Shortened tokens.