Centralize formatting of HTTP-style dates.

Use time.strftime, which turns out to be a bit faster than either
datetime.strftime or email.utils.formatdate.
A couple of small 2.6-isms.

We can use namedtuple and the new 0o octal literal notation.