Fix openseadragon import ; we're using globals for now until I can figure out how to do this
Remove unused code
More unused / commented code removed
Extract and display footnotes formatted