Teach scripts/maint/format_changelog.py about links to bugs

Roger points out it would be cool if scripts/maint/format_changelog.py -B were to output links to trac.