snapshot -- reinstaur crypto hash, add leveldb library, finish metadatamanager_