imap: added Settings::MaxConnections()/IdleMode().

* Also made use of the new BMessage API for the existing methods.