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](https://groups.google.com/forum/#!topic/pandoc-discuss/BqaUX5sGeNk), along with tests.