HH-30380 show original Content-Type and -Disposition on debug page, but replace it in actual output
HH-30380 PEP8
HH-30380 fix for debug=pass
updates for compatibility with tornado 3.1