Implemented footnotes, as per #60

The implementation is rather ugly though… But the result is nice. We could still use bigfoot if desired.