[TASK] Finish checkcommits script
[TASK] Adapt exit code handling to exit with same code
[TASK] Restructure main script and auto-create git post-commit hook