Some more bugfixing; was missing correct handling of close-on-read, and did not use client connections to send responses to clients (oops). Now even system tests seem to work with this.