New class SignalMaster: thread for waiting for signals.

Signed-off-by: Frank Mertens <frank@cyblogic.de>
fluxnode: Make use of SignalMaster.

Signed-off-by: Frank Mertens <frank@cyblogic.de>