Upgrade Tornado to 3.1