Moving iteration over relevant tripstops to separate loop. So we can do things like count the relevant tripstops. [See next commit.]
Next links now loop back to #page-1
Relevant, not relvant