Fix and/or remove a number of broken links.

Use known link targets from the _reference.md file in the generator
where possible.