Fix custodian bug, clean up, add tests

Bug: When `connection-pool-lease` called `connect` in the context of a
custodian that was later shut down, the connection returned to the pool
would be forcibly closed.
Merge pull request #10 from m4burns/m4burns-cleanup

Fix custodian bug, clean up, add tests