XMPP-BadConnection class

Provide methods to connect to a XMPP server, handling with connection
problem. v1