Refactored pyjs Flowchart interface. Fixed bugs in websocket server.