I'm a resource junkie, so I have put together a patch for making
nested resources nicer to manage and simultaneously guarded against
invalid access to "bad urls".
Hopefully I have keep the code clean enough for you all, and haven't
munged the test code too badly.