make #repository_id a common, configurable property of all importers

Making it configurable would allow specialized shortcuts such as
github to ensure that it identifies a github repository uniquely,
regardless of the protocol being used.
define clear_reporters to remove all reporters
properly quote envvar values (fixes env.sh generation for paths with spaces)