Split sending notifications and ignore private projects
This commit splits the code to send notifications to web-hook or the
different messages bus supported into their own function to make the
code clearer and more self-contained.
This commit also prevent all notifications from being sent on private
Signed-off-by: Pierre-Yves Chibon <firstname.lastname@example.org>