Ported WS plugin to module

Also added Java versions of a number of the interfaces.