fix binary saving
build
set headers for binary downloads
change attachment download to use node low level API instead of cradle/request