[libcontacts] Track whether contacts have valid IM accounts

Although QContactStatusFlags reports whether an account has any IM
accounts configured, we need to also know whether any of those accounts
are connected to valid telepathy accounts.