Merge remote-tracking branch 'refs/remotes/kali/feature/get-sizes' into develop
fix get_size call
lock document retrieval/put
defer parse to thread
defer copy and soledad writes
prefetch flag docs
do not defer fetches to thread

I think this is not a good idea now that all is done in the memstore,
overhead from passing the data to thread and gathering the result
seems to be much higher than just retreiving the data we need from
the memstore.
temporarily nuke out the fetch_heders diversion
defend against empty items
take recent count from memstore
increase writeback period for debug
enable memory-only store
make last_uid a defaultdict
long-due update to unittests!

So we're safe under the green lights before further rewriting.
:)
change internal storage and keying scheme in memstore
make fdoc, hdoc, chash 'public' properties
remove hdoc copy since it's in its own structure now
separate better dirty/new flags; add cdocs
two versions of accumulator util
defer_to_thread the bulk of write operations

and batch the notifications back to the memorystore,
within the reactor thread.