Fix link and reference issues found by http://validator.w3.org/checklink

A few of the HTML references remain broken, but that will be addressed separately.