Added tests for leveldb based registry functionality. Added leveldown as a dev dependency explictly so we can get rid of leveldb directories properly. Added a Registry#close function to the Registry class so we can get rid of db handles in a clean way if need be.