Better handling of measure pausing.

NOTES :
- Now the status and infos of the running measure is piped from the engine measure_status member.
- Add more messages when trying to stop, pause, etc.
- Add a share ressource module for thread safe manipulation in tasks
- Keep track of running threads and paused threads to know when the system is paused.