Implemented scaffolding of all the layouts.
Fixed bug in templatesKeys: now using ListMaps.