Fix for KO3.3 request/response separation

 Accept optional Response object in render(), and set the full response (including headers) if present.