Add separate commdaemon script to control looping of basic script, and allow orderly shutdown. Add hook to client.pl script to interact properly with the new commmodule and commdaemon scripts.