VORTEX MATTER IN YBA2CU3O7 GRAIN BOUNDARY JOSEPHSON JUNCTIONS: INTRINSIC AND EXTRINSIC D-WAVE EFFECTS FOR PI-CIRCUITRY