Add option for detecting stale connections.
Merge pull request #1 from cybozu/detect-stale-connection

Optional persistent connection test at the beginning of each request.