Use the UzblState's io_loop
Add TODO items
Remove unused cmd_cancel variable
Remove unnecessary functions