Remove message caches and related classes.

InputCache, OutputCache, DiskJournalCache, etc.

Also remove related configuration options and insertFailFast methods.
Remove mapdb dependency.