implemented ping (xep-0199) fixed #517