Refactor to use alert directive from Angular-UI Bootstrap.

Now it uses alert directive from Angular-UI Bootstrap rather than plain
HTML <div> elements with suitable classes - it simplified controller
code and separated alert type from alert size.