lua : removed delayed execution

this wasn't used and didn't work
lua : minor cleanups
lua : allow lua callbacks to yield

the argument to yield can be

* "wait_ms",value : yield for the specified number of ms
* "file_readable",file : yield until the file is readable
* "run_command",command : runs the command and yield until the command finishes execution