Store blobs in database [WIP]

Add possibility to store blobs in IndexedDB.

- [ ] Convert to base64 for browsers without blob support in IndexedDB (Chrome, ...)
- [ ] Convert back to blob when fetching from the database