Refactored alert-box directive; now there is a message stack and the directive displays all messages in the queue.