Add support for rocksdb
Add support for hyperleveldb
fix the timing of the second write
Don't close the cache which could still be used
fix the directory
Make rocksdb optional, since we can't build it on travis