Adding a very rudimentary garbage collection routine for attribute manager and node manager. These are okay for now but inappropraite for trunk.