Factor out notification send code
Remove icon argument to notifiation sending
daemon: minor style fixes