Add map_resource() and define "iterator resource."
Stub out resource.py.