Remove dependency on global CONF

Add a register function to be called before parsing
command line options and before calling setup to register
the command line (and other) options for logging.  Keep setup
in log.py, but change its API to take a config object as argument.

Change-Id: I0fbf81af761e0aae536e0c09b3db582fd6dbdff1