HWMonitor: refactoring, better multithreading, fixed hidden menubar icon when starting application with "background monitoring" option enabled