Revert "Using tornado.httputil.format_timestamp() instead of our implementation of RFC 822 date formatting function"

Previous versions of tornado doesn't have this function

This reverts commit a7ee9cd83ea6aa4f7aeb6443180956c9a15ca4fd.