This commit fixes the "none" hw-mode and various small issues

1) The none hardware mode didn't let the daemon run in a loop
2) The new whitelist socket function now contains comments
3) Various valgrind "still reachable" issues where resolved