[sensord] fix signal handling logic
[lib] daemon: add foreground mode
[tools] nb-graph: add pqtgraph based plot ui