Working chunked upload. No support for retry yet.

Just realised this never got merged with master! 

I was working off a fork of this repo for a while, I thought this had already been merged. So I'm cherry-picking it for @jsierles if that's ok :dancer: