Logging updates and config file option

Add ability to send log to a log file and use logging.debug to log to stdout if debugging enabled.
Read settings from a defined config file rather than the cli options.