Use tern to sort ids by depth, remove scope info
Merge pull request #2 from dloverin/more-tern

Use tern to sort ids by depth, remove scope info