Upload and delete buffers in a curl config file

Invoking curl with too many arguments can exceed the shell's maximum
argument length. Therefore, the number of files to be uploaded or
deleted with one curl call were limited. Writing these arguments into a
curl config file and invoking with `curl [other options] -K config.file`
is much more efficient and robust. No argument length check is required.