Correctly handle disconnections. fixes #2.

If no data is received from the server in 2 minutes, consider the
connection dead. The connection is reset, and qimaptray tries to
reconnect to the server. If this succeeds, a login is attempted and
the previous idle state is restored.