Disable some features if app is not connected

Disable resources, sending attentions and attachments if account is not
connected to the server.
Hackfix:Don't open new chat on "Gone" notifications

Chat's no longer bounce back after being closed.
Show resources details etc. in VCard view

Also improves the way delegate looks, fixes crashes when using vcard
view while being offline, gets version, time etc. for resources. It's
actually pretty awesome.
Ok, this one is stupid

But it fixes the way text on status bar looks so I'll commit it anyway.