Change initialization of Resource object to conform with the new response format and adjust corresponding tests.
Add methods to get the status and headers from the resource and the associated tests.