Smarter reconnects; example interface with plotly