WIP
Support Tomcat's high-performance connection pool

In the process, refactored code towards allowing user-contributable
pool implementation.