more link-building cleanup
fixed up test of rendering inclusions inside link urls
got links working
fixed failing references spec