code coverage

Hi,

I have created a pull request (without namespaces for the moment).
Hope I didn't miss any feedback (not sure about the unittest - maybe we can skip them in the beginning :) )
Please have a look and, if it is ok, I will make the changes to namespace and submit the request again.

I have run it on one of my projects with - 

unittest -l Coverage - -o registerpath '/home/apenciu/workspace/dev/xp.private/trunk/xp5/worlds/project/icap/src/main' -o reportfile 'codecoverage.html' src/test/config/unittest/unittest.ini

Thanks,
Andrei