Add anchors and links; work-in-progress
Add reference.html intra-document links. Fix mechanical and infrastructure problems detected by running inspect.