fixed several memory leaks

And infinity loop in stanza_destroy_form().
added support of captcha in a MUC
fixed memory leaks in presence.c
Merge remote-tracking branch 'dmitry/captcha-2' into captcha