rename openfile to tmpfile
first draft at separating out json to json-streaming
skip rather than comment segfault tests
csv tests use mktemp rather than mkstemp