mod. generalized revert_rate_past_revs_query and revert_rate_future_revs_query into one method page_rev_hist_query
mod.  allow thread limits to be set in config.