Merge :download-messages and :download-flags tasks

New task :sync-mailbox does both.  Update recorded modseq value for
downloaded messages, not only for flags.