Message service and directive to display flash messages in AngularJS