Angular services and directives for alert, input and confirm dialogs, and also toast and flash messages