Adds websocket rails client script
Huge messy WIP