Travis CI config file

I added a config file for Travis CI in the root folder of the project. But that required a pom.xml in the root too. Therefore I moved common parts of the two projects into the parent.