add thread-local utility class to do docid + version lookups
merged
merged
remove sops, turn forbidden APIs back on, add comments