add http reconnect retries

  - Add retries argument to set number of attempts
  - Has 3 second sleep by default, incrementing by 1 for each subsequent retry