qi.application: Fixes high CPU consumption due to high-frequency `run` loop.
qi.application: Fixes high CPU consumption due to high-frequency `run` loop.

The loop in the `Application::run` function was causing an excessive CPU
consumption because of its short sleep duration.

This patch removes this loop and uses the blocking `run` function of the
`io_service` object instead. Doing this forces us to put the
`io_service` in a global static object.

Change-Id: Ia5a017203418cec544cb58e30b047424ad8df8f4
Reviewed-on: http://gerrit2.aldebaran.lan/1314
Reviewed-by: jmonnon <8898eaf233516e520f996a244ca8a12d20f948b1@aldebaran.com>
Reviewed-by: gerrit <3b97070d46ccd66422a8e7b83e6967ed84780538@aldebaran-robotics.com>
Tested-by: gerrit <3b97070d46ccd66422a8e7b83e6967ed84780538@aldebaran-robotics.com>
Reviewed-by: philippe.martin <a3db8b74c3cf86a5cf091dca4e2125b498be933d@softbankrobotics.com>

aldebaran/libqi,aldebaran/libqi,aldebaran/libqi