There were lots of potential tie-ins here. Like, the planet they went to in this episode was Vadia XI, which was the original homeworld of "maybe-Trelane" from Wedding Bell Blues.
I don't think the Vedza are supposed to be some kind of "Dark Q" or anything, but I think the implication is the proto-Q, before they transcended, were the ones who trapped them there.
I would be OK with the Wormhole aliens and the Pah-Wraith being some sort of proto Q or side shoot. Some will cry small universe syndrome but I think it could be inriging.