Expose view state

Add a getter to get current state of view and emit event when view state change.

This allow to synchronize other element with current connection status, and to implement a light view, based on the real one, but without copying all its logic.