Modify state handling to avoid starting all plugins registering a state at startup of state plugin. Fix measurement app_closing : avoid starting the plugin when shuting down.
WIP : debug pulses workspace