Made base flashmessages helper more flexible.
Extended in preparation for Bootstrap theme.