Implemented `Ext_header_identifiers`, `Ext_implicit_header_references`.

Now by default pandoc will act as if link references have been defined
for all headers.  So, you can do this:

    # My header

    Link to [My header].
    Another link to [it][My header].

Closes #691.
Added tests for implicit header references.