Support for retrying after server errors with resumable upload, added negative tests

R=sgjesse@google.com

Review URL: https://codereview.chromium.org//381883003