A Numerical Method For Doubly-periodic Stokes Flow In 3d With And Without A Bounding Plane