Refactor the pipeline/hsc interaction

It would probably still benefit from some tidying up, but it's now
much more opaque, with the control flow easier to understand.
Remove old ltx and verbatim utils
Fix #7722: iOS runtime loader quirk.

Patch from Stephen Blackheath!
Merge branch 'master' into master-merge-ios