deeply nested routes

Thanks to @tahael for this code & docs -- I simply copied into master. Copied from #629