gajim: import some improvements from xmpppy and use it where it'...