Fix #302. Show referencing commits in issue.

With my latest commit d43c5895bc5026fb29dd9aa509056e49b4644ba7 references in commits should now work. They will be listed as referencing the issue and if the referenced issue is in the same repository it will also close the issue.

I have tested it a bit, but it should probably be tested by someone else too, just to be sure.