WIP
simplified and renamed send_headers() a little
stream into separate module
WIP
remove experimental code