Factor out common flags; fix Util.setTemplatingAndProcessingFlags().

Ensure that the flags accepted by the various CLI utilities are consistent,
and provide help for the --trace and --dump options from all CLIs.

Change-Id: I3b6e3c8d4797118b6b910c0e9fc3c37e8d76ec0d