Added Travis CI configuration

Allow [Travis CI](https://travis-ci.org) to automatically test the library on every commit and pull request.