add option to retry connection

This allows retrying to be disabled with an option. This is useful in the scenario where influxdb is unavailable and the desired behavior is to raise an error rather than retry. 

This behavior is preferred for the following scenarios:
* writes to influxdb are in a message queue that retries on error
* reads from influxdb are made from within an application, which will rescue the error and return empty results