configure for cabal test, add pre-commit script for running tests
configure for travis