Fixed addUpdateDevice RPC function so that it can accept the device
identifier as either a list of strings (each element being a different
group name) or as a single string (group names separated by periods)