travis: add clang-format support
git: add pre-commit hook