Merge pull request #25 from wcandillon/refactoring

Use IndexedDB transaction API.
Merge pull request #26 from wcandillon/refactoring

Update commit() function
Implement commit() for IndexedDB