Drafted fetching metric children by depth parameter.

Big monster. I thought I had split these changes into 2 commits, one for the end parameter, and the other for the depth parameter. Sorry.

@mgbelisle