Using GCM how does apps like Facebook, Quora, etc send notifications to a single user/device out of so many in the database? How exactly is the server side setup to filter users or devices based on some necessary fields?