big nasty whitespace commit

bring a whole bunch of contributed code back into the spacing style of
the rest of the project
move all cache mutations to the reactor thread
small cleanup
add config in for cache drain strategy
some thread safety additions