Add support for resource collection response

Addresses issue #6.