Adding licence headers and removing some warnings and unused stuff
Fixing test problems in maven, bumping surefire version to 2.7.2, adjusting classes and tests to that change