Refactored stacked sub pool value accumulation

Moved the value accumulation into its own class. When the sub pool is updpated,
we now ask the accumulator for the required bits of data that we need in order
to update the sub pool.
Update comment
Renamed PoolManager.findEntitlementsForPool

This method takes a Pool as an argument so it is self explanitory.