Lazy markdown reference links extension

This patch implements what's known as "Lazy markdown reference links", as described in the `pandoc-discuss` post  **New feature: Lazy markdown reference links**, along with tests.