Issue-280 Send notifications when a note is added to a commit and author is a group member

This fixes a bug where commit authors weren't receiving email notifications for notes added to their commits and their membership was in the group but not the project. The fix is to look up membership via the team object which accounts for both project and group members.
Merge pull request #7617 from pkill/issue-280-commit-note-notifications

Issue-280 Send notifications when a note is added to a commit and author...