Singularity-Free Boundary Methods For Electrostatics And Wave Scattering