Fixes disappearing accounts when they are enabled/disabled from the accounts list.
Fixes problem with orphaned XMPP contacts when groups have the same name. Logging improvements.