tests: Add TRAVIS CI

Add TRAVIS CI config (.travis.yml) and script (contrib/unit_tests.sh) for
executing cpp and java unit tests.