Make junit emit valid xml document (validated by xmllint)

- Rename <TestFunctions> to [TestFunctions] (fake class name used when
using only test functions).
- introduce a xml escaper (WIP)
Also run functional tests in our CI server