neo4j/neo4j — pull request #320 by digitalstain (2012-11-22 19:17:43+00:00)
Title: Fixes listener addition/removal

Tries to get listeners to events to register on init(), be removed on shutdown(). That makes some nasty bugs go away by ensuring events
are not received when they no longer can be handled.
Fixes the ClusterClient life by adding an init() that was missing.
The above allow for the ClusterClient to be added to the life of HAGD as soon as it is created.
Touches up some tests.
This introduces synchronisation in start()/stop() of TxManager is temporary and need to be changed by having all lifecycle operations be managed through an owning LifeSupport instance.