Refactor security group method.

It now takes one security group and returns a pair of [name, id]
The config file now defaults to providing an empty array for the
security_group_{names,ids} configuration values.

We update the surrounding code to reflect the above changes.
Document security group code.