Added code to set the loglevel from the config file or the command line.
Command line takes precedence.  Defaults to CRITICAL now.

Signed-off-by: The Doctor <drwho@virtadpt.net>