Making definitions work again

The templates previously provided the anchor character '#'. This is now removed since we generate it instead. Also, we didn't have any testing around the definitions layer, so added that. 

I'd missed the real fix in an earlier iteration of this. Now, this fixes the data-definition attribute. We've got a better design now, and the href and data-definition attributes are independent entities.