Updated the semantic mediator to use new version of cdim mapping and
NIVEL dsm. 
Added unit tests to test the sql generation from archetypes.