Sub resources

Add support for sub-resources.

The naming of sub-resource request classes is a little gross (see emitter_test.dart), but we need to avoid naming conflicts somehow; emitting separate files for each level of nesting would also do the trick, although that's a more substantial refactoring effort.  LMK if you'd like me to take it on.