Improve/repair LDoc
Add an idle event handler that is called at the same point the main loop would be.  Specifically, not in dialogs, get key or delays.