Create pre-commit script

This update covers creation of pre-commit script and updates existing
scripts to work with pre-commit script. Additionally, tests.bat/sh were
created to launch all scripts possible.

Verification:
    Run pre-commit.sh, check if updated scripts work fine.

Change-Id: I5f1ecce897c9dc774c4b4c238bda28755bca18bb