JavaDoc member variables
Fix pingTimedOut() computation and threading:
- Subtract the right stuff
- Tracking pings is possible with only one variable so do this
- Synchronize all functions which mess with the member variables.
- Guard against receiving ping reply from dangling connections by checking the connection ID