Use ajaxSync if no database is specified

If in a collection or a model, no database field is specified, fallback on ajax sync. This will enable only certain models of a project to be saved in IndexedDB while others can still be synced. Will make existing projects adapt this easily.

Added in this commit
- Logic to fall back on ajaxSync
- Added test case for it
- Mock Ajax to test ajaxSync.