RestClient.tmpdir config

Added support for API clients to specify an alternate tmpdir for underlying Tempfile.new() calls, allowing large-file use-cases to be customized to write to somewhere on disk (e.g. /var/tmp) and avoid filling up the memory-backed /tmp filesystem.