Refactor security group method.

It now takes one security group and returns a pair of [name, id]
We also update the surrounding code to reflect that.

The config file now defaults to providind an empty array for the
security_group_{names,ids} configuration values.
Document security group code.