remove useless "global cfg" statements
"repository" config param is optional
log cosmetics
return response as json with command stdout/stderr output