Added clear all button
Put messages array on rootScope to allow data binding on title tag
Display an icon for each message based on its group