Xmpp 1st part (actually not XMPP at all)

This is just preparation work for the XMPP support: splitting words and IRC.
Of course I'm happy to improve the code anytime, but you're commenting on old code that has just been moved from one fie to the other there ...