device uniqueness is keyed on token and app_id
fix #to_apple_json in notificatoin and group_notification
point to device rather than id