Add Raft4WS implementation

Details from https://groups.google.com/forum/#!topic/raft-dev/uMsbTQysXyE