Fixes for the ajax sync protocol (#424)
Fixes for the ajax sync protocol (#424)

Fix some typos.

Add contentType property with application/json to the ajax call. Some
servers use it to know when to parse JSON.

Add warning that the needsResync flag is not implemented by
Dexie.Syncable.

Add partials flag to the server reply and pass it to
applyRemoteChanges().

When the server sends us a clientIdentity make sure we save it before
trying to resync. If saving failed we should stop syncing.
dfahlander/Dexie.js,jimmywarting/Dexie.js,jimmywarting/Dexie.js,chrahunt/Dexie.js,dfahlander/Dexie.js,chrahunt/Dexie.js,jimmywarting/Dexie.js,dfahlander/Dexie.js,chrahunt/Dexie.js,dfahlander/Dexie.js,jimmywarting/Dexie.js,chrahunt/Dexie.js