Also reduce API exposure and use standard library more - and fix bugs I previously introduces in mongo.
This conversion is not complete as there are still uses of string directions via the Direction.String method in leveldb.