Add Do and Main functions
Quit causes Main to return
Clean up showimage to use new Main pattern
Add comment about staying on main thread
Merge with upstream adam000/master
Merge remote-tracking branch 'origin/mainthread' into mainthread
Fix double run in showimage demo
Merge pull request #12 from zombiezen/mainthread

Simple main thread