Tidy up phantom generation.
Refactor phantom/prefix handling.
Unify speech with non-speech handling in shared-line code. This fixes a bug where stage directions within shared verse lines were getting misplaced.
Refactor shared-line handling.