add respond_to support for the resource

This should make poking at the resource objects a bit nicer.