Rewrited from xmppip/xmppip.py

[+] presence handle
[+] check URL availability