First attempt at supporting Pandoc-style footnotes. The existing tests have not broken but the new functionality does not work yet.