treat an empty json response as an error for now
make the imap test connection button class imap specific
more work on pop3 support.