Unify pattern matching (wildcards)

di_server had its own CBM_match. Renamed name to wildcard because I could
never remember what "name" does. Moved to common/ for providers running
on the device.