Add clearMessages() function

clearMessages removes all messages from the avatar.
Ex:
{% clearMessages() %}