Refactor load-cli-arg common event code

Custom commands, custom arguments, and existing service operations from the
service model now all use the same logic to unpack CLI arguments. This adds
support for file:// and http:// URIs to all arguments unless no_paramfile
has been set.