Refactor: tools: Add pcmk__cli_init_logging.
This function just wraps up common code that all the command line tools
are doing. Only those tools that have been converted to using glib for
command line handling are using this function. Other tools will start
to use it as they are converted.