Support warning flash message

A warning flash message may now be displayed and the logic to choose the
appropriate class is now in the ApplicationHelper and tested.