Ticket 7893: Adding the ability to remove collection and member route generation for Resources

Hello all,

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.