Channel ui alerts

Added a bit of code in the view and controller for the alerts UI
Did a bit of code refactoring
This PR is for issue: https://github.com/jembi/openhim-console/issues/71
On second thought, please disregard this comment for now. I see we're doing it in multiple places (e.g. routes). Let's leave it in for consistency.