added new directive: appMessages. Used to display app-wide messages.