Add template macro for alert boxes

The alert() template macro can be used using a {% call alert(...) %}
construct, so that arbitrary content can be embedded in the alert box.