Gray the icon when the connection is lost.

For this, the imap code has been reworked to send a callback when the
connection status changes. We can then emit signals and the tray class
can now know if we're connected or not.

Fixes #9