Fix corner cases in recognizing links to issues and revisions.

Add the patterns for these two in ``config.py`` so they can be
overridden.

Also add the template to use when recognizing a link to another issue
there.

Fixes http://plone.org/products/poi/issues/262