abstract out the normal "do a check" routine
convert most of the rest of the checks to _do_check
refactor maildir observers
do the dayold checking in _do_check

(I really want better scheduling, though.)
compactify debugging output
collapse unneeded space and blocks