Account: Swap connected and disconnected state

Also, avoid full integer enumeration
ConnectionValidator: Account::setState no longer takes a bool

This makes the client come up with the correct state when the
initial connect fails.
Report connection errors explicitly on explicit sign in attempts

Implicit connection attempts fail silently. This is roughly what
users expect from e.g. mail clients.

Fixes #1205.