Add travis-ci script
Merge pull request #46 from Chilledheart/travis-ci

Add travis-ci script
Resolve pidfile resource leaks

This patch resolves resource leaks caused by not closing the file streams upon
an write error.
[FIX] homebrew autotools path
Add clang-format file
Run clang-format