support of xmpp ping ( XEP-0199 )
Xep 0199 define a way to ping a stream to see if it is still connected. Since the xep is quite simple, and since it is not likely change much in the future ( from what I seen, the modification for 0.3 is just "service discovery" ), here is a quick patch to implement it.