Refactor: tools: Put all the formatted output init stuff together.
This is a little less dramatic than the command line processing, but
there's less of it and it's in fewer files.
Note that pcmk__register_formats must come before the command line is
parsed, as that function adds the format-specific command line options.