fixed indexedDBshim to use the new taskqueue implementation, use ResourceManager.addItems instead of direct put when saving models/modules to cache, to make sure the store has been created