CDB-1306 Basic component structure, MapInstance code + tests