Move leveldb code into project structure. We might be able to move
all the project related code to a separate package.