Qttest updates

Minor cleanup
Some expansions:
- use Julia event loop so it doesn't block
- callback into a Julia function (slightly ugly right now, couldn't figure out how to make it one-line - see comments)