Daemonize collector threads to avoid them delaying program exit.
Add "q" key to exit
Move the keyboard processing code into a function.

Make keyboard processing more responsive by calling the new function
when idle waiting for collectors to finish.

Additionally, revert the threads daemonization, since it sometimes
leads the shell commands into zombie mode on exit, leaving pg_view
hanging in uninterruptable sleep.