Changed classes for ToC links

to make it clear when a title should be autogenerated from the module
and when it is overridden
Ensure math elements belong to the MathML namespace
Added support for additional figure/table attributes
Convert label element to data-label attribute