factored out the threads for segments and verified
threaded segment download ready for testing
returned 0 removed
keep tmep files
configure temp path not tested
from 14 to 130MB/s
w/out temp_dir uses tmpfile()
rearanging functions