Tornado 3.0 support. closes globocom/tornado-cors#2 globocom/tornado-cors#5