Add UI tests plugin for CMake. Fix a couple of bugs it found.

Also restructures the pom.xmls to put the modules in the top level
so we can order them to have the test plugins build after them.

Change-Id: I2f0e4ebd252791fb8844cdf0f635d574946207aa
43 files changed