Fixing upload issues.

Sometimes uploads don't finish. This is because the completion function is not called after the HTTP response comes back.
Also increased buffer sizes, so we have smalled overhead on file uploads