added support for ping frames, fixes #23