PHP class for creating a session on server side to an XMPP server