Core fuctionality of node-xmpp