Better encapsulation for the node pool
Finish generic-pool

This was a refactoring of NodePool (now CappedPool) with no functional change expected.  Soak testing shows no problems.