rework qi recovery to use a global dets table
fix clean shutdown detection
back out of changes to the message store
refactor - better function names
remove superfluous comment
deprecate rabbit_queue_index:scan/3
add specs for rabbit_clean_shutdown
fix specs and small renaming
handle dets table data properly
remove superfluous begin..end block
cosmetic
cosmetic / rename
cosmetic
cosmetic
Use the directory name as a key
Cosmetic
rabbit_clean_shutdown => rabbit_recovery_indexes
Cosmetic (ish) / Refactor

Rename {detect => had}_clean_shutdown, remove extraneous handle_call clause.
Oops - change module name for all call sites
Reduce distance to default