Added lots of configurability, authentification on XMPP side.