Added type property to XMPPMessage