Add travis and coveralls support. Fix a few issues found.

Support is added through git-hooks-go.