Old forum posts contain broken links to other threads.

This patch redirects these where possible - the id, if not numeric, is
checked against thread keys and redirected to the thread if it exists.

This fixes crash errors when crawlers happen upon these old links.
Merge pull request #224 from jbarrett/redirect-broken-comment-links

Redirect old forum links to new thread links, where possible.