Enables executing functions in response to sockets

Socket backend sends a json message with the name of a function and
the a params object to call it with. The client, upon recipt, will
execute window.discussion[functionName](params)
Enables websocket responses on branching a discussion