Refactoring the alertService to be its own module. It now has a directive to display the alerts and automatically removes the alerts after a few seconds.