Log contents of account directory for debugging
This branch logs the contents of the account directory to help us track down disappearing account bugs (#1189 (closed), #1219 (closed), #1227 (closed), #1396 (closed), #1526 (closed), #1545 (closed)) and empty database bugs (#1367 (comment 31102), #1528 (closed)).