Add json/zlib opts for put/get
Clean up memory mgmt in dbstore.cc