add generic connection method
Merge branch 'master' of git://github.com/Philonous/pontarius-xmpp