Add support for parsing and emitting Date headers, with tests.

--HG--
extra : amend_source : c0bd0e42434f81391e6ce67f7ca4a9e6d903e36e