Read security group definitions from cloud_controller_ng.yml correctly

* Validate the structure of rules/security groups coming from the config
* Export running_default and staging_default when serializing security groups
* Add security_group_definitions and staging/running defaults in ctl templates

[#74073900]