Update names in tree view when either user or contact is edited

This changeset includes #670