First pass at XREF gentext handling complete

This pull request contains the code to autogenerate cross-reference text for \<a class="xref"\> elements.