Implements graph-based tex master auto-find
Added support for detecting loops and false masters.
Adds an open-pdf feature