Update indexeddb.js

Fixed ObjectStore.insert and ObjectStore.upsert to resolve onsuccess only when a batch insert/upsert is done, but to notify onprogress on each inserted/upserted item. Thanks to cipconsolacion for hinting me in the right direction with https://github.com/webcss/angular-indexedDB/pull/16