Add initial cmake script.
Fix cmake build.
Add Travis-CI support

This pulls in the test data from its github repository, and checks that
"make check" is succcessful.  Currently, this doesn't check the Java
support, but is a good start.
Rework modules generation.
Merge pull request #8 from vstakhov/master

Add cmake build script.