Correctly clear and create a new ioloop during autoreload (#2137)
Correctly clear and create a new ioloop during autoreload (#2137)

* Correctly clear and create a new ioloop during autoreload

After the removal of the deprecated io_loop arguments from all functions,
the autoreload module stopped working as the wait function's usage was
missed in the refactor. This resulted in the start function receiving an
IOLoop object as its only argument which it then used as the check_time
argument resulting in errors further down the line when the check_time
is expected to be an int.

* Use the ioloop's add_callback function to start the ioloop on wait

There's no need to stop and clear the loop here, just add start as
a callback and start up the ioloop.

mivade/tornado,tornadoweb/tornado,allenl203/tornado,lilydjwg/tornado,ifduyue/tornado,wujuguang/tornado,allenl203/tornado,lilydjwg/tornado,dongpinglai/my_tornado,legnaleurc/tornado,Lancher/tornado,ifduyue/tornado,NoyaInRain/tornado,SuminAndrew/tornado,Lancher/tornado,wujuguang/tornado,SuminAndrew/tornado,dongpinglai/my_tornado,hhru/tornado,allenl203/tornado,NoyaInRain/tornado,dongpinglai/my_tornado,bdarnell/tornado,bdarnell/tornado,legnaleurc/tornado,mivade/tornado,Lancher/tornado,hhru/tornado,mivade/tornado,dongpinglai/my_tornado,tornadoweb/tornado,SuminAndrew/tornado,mivade/tornado,wujuguang/tornado,mivade/tornado,dongpinglai/my_tornado,ifduyue/tornado,tornadoweb/tornado,Lancher/tornado,SuminAndrew/tornado,Lancher/tornado,wujuguang/tornado,tornadoweb/tornado,allenl203/tornado,dongpinglai/my_tornado,lilydjwg/tornado,bdarnell/tornado,NoyaInRain/tornado,legnaleurc/tornado,allenl203/tornado,NoyaInRain/tornado,legnaleurc/tornado,NoyaInRain/tornado,hhru/tornado,SuminAndrew/tornado,hhru/tornado,ifduyue/tornado,legnaleurc/tornado,NoyaInRain/tornado,ifduyue/tornado,bdarnell/tornado,wujuguang/tornado,lilydjwg/tornado,bdarnell/tornado,hhru/tornado