Fixes the bug of sending an e-mail notification only to the owner of the...

... event. Also allows to send e-mail notifications to the members of groups that are shared with. Also checks that each recipient gets the e-mail only once, even if it belongs to several groups, for instance.
users and groups can have the same id, please check ```$sharee['share_type']``` instead