Minor update.
Initial support for PING/PONG control messages.
Added support for explicit quit. Updated example to quit in window.onbeforeunload.