Q will ally himself with the Federation against the Borg and Cybermen
Qs are time lords. Gallifrey is the Q-Continuum.Obvious, really.
Gene Roddenberry is a Time LordHence why Star Trek is able to simultaneously exist in a parallel universe and be a TV show that Rose (and Izzy) have previously referenced.
Guinan is a Time LadyGo reread her conversation with the Doctor, it might as well be official.