Leveldb

Buffering messages is now implemented. They are stored in leveldb (obvious from branch name).