Use Tornado 3’s gen_test instead of our hacky async_test_engine.
Update examples to Tornado 3 coroutine style.