Propagate the headers produced by the pages/handlers as well.

(Based on Otto's pull request 649)