Make an iterator and implement "list" with it.

Signed-off-by: Peter Jones <pjones@redhat.com>