send mails to group email

Send email to the group email address, if defined. Otherwise to all group members like before.

Still working on one test case failure, but creating request for review purposes.
not sure, it is so special and only used here. dstributing it does not make it easier to read. 
But I will factor it out into a private function instead of having it twice here.