WebSocket: Accept a PONG

Based on https://github.com/LearnBoost/socket.io/pull/1026, extended
to cover both protocol versions.
WebSocket ping/pong fixes.

- Fix the pong frame converting to utf8.

- Echo ping's data: http://tools.ietf.org/html/rfc6455#section-5.5.3.