Initial work for implementing autosaves
fix loading of pixel data
Correctly update has_data_
Correctly deal with the pages that exist already when the autosave manager is started
use a scan_finished signal to know when to autosave
do not use curly braces for single line branches
add verbose logging output for autosave manager database access
Fix subquery
even more verbose logging
use bind_int64 for the direct_hash values
Autosave document and restore on quit
More coding style fixes to autosave manager