fix block reading
fix streaming
support for line-and-block reading
closing and invalid socket errors out
initial scaffolding for a webserver