test cleanup
Added a kazoo stub, to allow testing without ZooKeeper.

Fixed some session-management issues.