Use tempfile to create temporary output and clean resources
Use tempfile to create temporary output and clean resources

Existing implementation of protobi_put_data takes defualt temp path and
never removes it.

This behavior has some issues:

- Unless user manually manages the names it is not safe. If multiple
put_data calls are executed at the same time, wrong data can be
uploaded.
- It leaves, possibly sensitive, data behind.

protobi/protobi-r