added ClientConfig.connectionAttempts to provide an upper bound to connection attempts.
Merge pull request #32 from tumblr/client_max_retry

added ClientConfig.connectionAttempts to provide an upper bound to conne...