Add option -alerts to opt out of alert system
Make it possible to opt-out of the centralized alert system by providing
an option -noalerts or -alerts=0. The default remains unchanged.
This is a gentler form of #6260, in which I went a bit overboard by
removing the alert system completely.
I intend to add this to the GUI options in another pull after this.