Initial refactor t support Thrift generated files that support Tornado's async framework.