Improved local-doc access (workaround for Traun's problem)
Re-enabled wal_flush_before_commit, and set up a forestdb log callback