A three-dimensional spectral boundary element algorithm for interfacial dynamics in Stokes flow