Refactor Ndex#deleteDatabase
- Uses Promise; resolved on success
- Resolve out of the current event loop… looking at you, Safari.
Do not use promises to create transaction
- Safari doesn’t like it
Add Ndex#clear
Add Ndex#clearAll
Open database only once in specs
- clearAll before each
Create 1 transaction per objectStore [Ref #1]