fixed a bug in API.getUrl(), it was using this.type instead of 'type', so was building bad url
fixed a bug in IndexedDBShim that broke sync with server in browsers that support WebSQL but not indexeddb, added per-model promises to ModelLoader so that consecutive queries for the same model will not result in duplicate ajax requests
minor fix