Fix deactivating account while in IDLE

Consider LOGOUT as a task, so that we exit IDLE before sending the
command.

Also introduce the notion of tasks that can be performed in any mailbox,
using the :any-mailbox keyword.
Separate out function for reading mailbox name
Initial attempt at mailbox tree buffer

Connection state updates automatically, but mailbox message counts are
hard-coded at 42 for now.