directory.py clean-up:

* Tree.replace() and Tree.modify() are getting Entry objects as
  arguments, so requiring DN is superfluous,
* update User/Group/Netgroup objects to reflect that change.