New strategy for defining number of used threads

Number of worker threads is 2 + 1 for each component that polls devices.
Frontend: color switch icons yellow if on
Merge commit '47adae791738d54cd2b112105fce0ec208cb4a7f' into dev