Move scripts handling to separate module

Signed-off-by: Michal Čihař <michal@cihar.com>
Remove not needed import

Signed-off-by: Michal Čihař <michal@cihar.com>
Use translation set to get percents

Signed-off-by: Michal Čihař <michal@cihar.com>