Fix war overlay in functional-test

- added a new module to create the overlay (with only needed code and libraries)
- functional test will no longer build war overlay but just executing tests
We really need to get rid of this hack, but it can wait until we get the dependency problem sorted out (ie after this PR).