Added support for ping and pong frames. Increased maximum payload length.