Added method to pull down all ancestors of a thread.

Also added method to traverse the tree upwards, returning its root
Merge branch 'ancestors'