Refactor: tools: restructure crm_resource command-line resource configuration
... to allow (future) options other than --validate to use the command-line
resource configuration options.
I had planned to use this for a project but went in different direction, so
nothing more is expected to use it for now, but I think it's still worthwhile
to help isolate different parts of code.