The code now can host multiple pools.
Got rid of most singletons.
We have the base work now for #113.