ws-client initial functionality

There is still a lot missing but this gets things started.