GERONIMO-3834 Fix the permit leak when connections can't be created. Simplify some of the pool code and add some pool tests for permit count and resizing