Changes to support access token and multiplart upload, binary download.