Change implementation of footnotes in textile_output.

Update the footnote.org tests.
Merge branch 'fix-textile-footnote-test'