This adds appid checking to the lookahead spout.

... emitting messages that were not intended for it