Fixed create access rule methods

Fixed create access rule methods so that they return the newly created
access rule object
Added deleteAllAccessRules to tree node class

Added deleteAllAccessRules method to tree node class that will delete
all access rules associated with that node.
Added delete all access rules in tree method

Added a delete all access rules in tree method to the tree node class.
This method performs a depth-first deletion of access rules within a
tree.
Updated deleteRepository to delete access rules