Fixes and improvements to cubes export (details, embedded dim mapping).
Added templating and cubes hierarchies export.