Remove legacy myts references
Rearange processing of references for improved hadling of markup in citations
Add page set reording function