Adequately react to non-existent upload url and upload error in general.
Introduce max_retries option, which will retry upload (of chunk or file) exactly that many times before reporting it failed. Address #657. Update moxiecode/moxie@752174d8c1dcd3bb9645995fc8951600e9d568f0.