Mailbox settings, add, edit, delete multiple mailboxes

Settings fixes.
Controller now lazy loads dependencies