This is a third revision of the patchset that adds a pv->vg link. This patchset hopefully covers all remaining cases. There's plenty of room for future cleanup/refactorings but I stop here for now. Passes testsuite.