move createXMPPClient to its own file for easier maintain