Set up tree relations for Directory model.

Current spec status: 33 examples, 0 failures in 0.25576 seconds.