Support for resources and requests from proto schemas.

What about an actual unittest?