generalize AppId and FirehoseSubscriptionId to StreamId

[#80129308]