Parse account details in application delegate

The IMAP account is initialized with a defaults dictionary. This works
since accounts are only created from preferences, but is less suitable
if we also want to create them dynamically. Instead parse the dictionary
in the application delegate and pass the values to the initializer as
arguments.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>