Full implementation of the fs module on top of leveldb