Refactor CLI to group module related commands together. Extend HCL writing support to support slices of complex types including slices of blocks with labels.