Add end handlers for client requests and server responses.

Also, fix a fragile OS memory test. And mostly implement HTTP trailers
except it's not passing tests at the moment, so...