generalizes indexeddb implementation
moves Backbone specific code to sync

adds operations' unit tests (except for query)