Added ping/pong events to protocol doc
Added ping handler to server
Added game.latency and calculate latency in connect state
Set up average recent latency loop
Rewrote player position correction code to be smoother and more reliable based on latency