Added owning tree node reference to access rule

In order to maintain a backwards reference from an access rule to the
tree node in which it resides this commit adds a tree node field to
access rule.
Changed some tree node methods to static

This commit changes tree node methods that accept a tree node as a
parameter to be static as they do not need to work against the current
instance.