Fix a few bugs that (probably) emerged because of the server switch.
Make code that removes the navigation table more robust
Prevent the line for footnotes from appearing multiple times when more than one FN on a page.
Remove debug lines.