Add and use new history
This is pretty much a complete rewrite moving all database actions to a separate thread. Fixes #323 #353
This diff is collapsed.
This is pretty much a complete rewrite moving all database actions to a separate thread. Fixes #323 #353