Add doc id to oldDoc for ease-of-use in sync function

Add the doc id to oldDoc by prepending id property to incoming oldJson byte array.