Refactored tornado-server to work on gen.Task