Support filtering by groups of devices.

A device entry can now include an optional group name. If the user
specifies a particular group by which to filter, only devices in that
group will be shown.

Add argument-parsing support so the user can choose a group.