Copying hooks and CONTRIBUTING.md from qt-viewer.
Copying the pre-commit hook script, git attribute file for flake8 merge check and new CONTRIBUTING.md from qt-viewer. Small changes were made to CONTRIBUTING.md so the repo references match.
Copying the pre-commit hook script, git attribute file for flake8 merge check and new CONTRIBUTING.md from qt-viewer. Small changes were made to CONTRIBUTING.md so the repo references match.