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
projects.
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>