[Delivers #52048235] Allow alerts to be hidden

Allow sidebar links to propagate, so we can add multiple events to those links.
Dynamically add a hide action to all alerts
If the sidebar link to the form_messages is clicked and errors are hidden, messages are then displayed.