Remove duplication in translation scripts

Remove now obsolete setting of COMMIT_MSG, it's done in
common_translation_update.

Move common horizon transifex setup to new function setup_horizon.

Use local for some variables.

Change-Id: Ia5fe641a38a110aec937304603412afaa571134c
Merge "Remove duplication in translation scripts"