add client-side logic for RPC calls to JB over websocket
Merge branch 'master' into tim_dev