Added to C++ code.  Now has some tests, not all of which are passing.  TODO: fix norming in KDE.
To make this work, need to have cpptest installed and library path added at compile to time.  Also require LD_LIBRARY_PATH env variable to point to libcpptest.so if it doesn't already.