Fix up header tests and HTTP-date bugs.
Fix memstream code.

Rust compiler should have objected, but instead gave junk. Not good.
Add memstream to dependencies in Makefile.