[libcontacts] Improve utility of avatarUrl role.

Previously, no metadata preference was built into the default
avatarUrl role logic.  This commit changes the filteredAvatarUrl
function to prefer local picture avatars over other types of avatar
images.