Add ListenRuntime component

The idea is to have a component that can listen to the connection state with a given runtime.
This is especially useful for a websocket based connection and can be used in different places of the UI to trigger appropriate actions on 'connected' or 'disconnected' events.