WS-Client is now unit-tested, minor cleanup of ws-client.js