Added retry logic.

Fixes #40 
Changed this to be `attempts` so it makes sense that it has to be at least one. Also, I left 1000ms as the min wait because if the upload fails, I doubt anything will change in less than a span of 1 second anyway.