adding retries for connection hangups

Instead of erroring on a connection hangup, the request will attempt to
retry.
0.5.1

adding retries for connection hangups
Merge branch 'master' of github.com:segmentio/analytics-ruby