Buffer cache redone

Noticed that I had set LevelDB and RocksDB to always use
3GB of memory cache. Instead now it is an command line option.

Also moved out the buffer cache to its own repo.