Implemented support for resumable upload, plus test

R=sgjesse@google.com

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