Add support for automated code style checks

This is a continuation of pull request #51.
This pull request:
* adds a pre-commit hook which runs a code style check (on C++ files based on `cpplint.py`) on every commit.
* fixes Travis CI build disabling tests
* adds a code style validation step in the Travis CI build
* adds NPM version and Travis CI build status badges to README