Add a footnote section with extracted footnote text

This provides a section of footnotes at the bottom of a transformed page. The footnotes like to and from the reference using footnote numbering.