[Azoth] Avoid infinite loop if cast to IMessage failed.
[Azoth Xoox] Store all avatars in cache in EntryBase::SetAvatar().
[Azoth Xoox] Load avatars on entry initialization.