make it connecting to ejabberd ok.

I already issued the problem about connecting ejabberd. 
Util now I still cannot use `go-xmpp` to connect my ejabberd server . (with xmpp version 1.0) .
And I dont know why.

But I use my way(ugly) to connect ejabberd with changing a lot of codes. (abondan the xmpp version 1.0 ) ,
I am not familiar with `xmpp` , but my way is OK.

So I do this `pull request` is to get some attention about connecting ejabberd, maybe it will get some help.