Improved connection factory interface.
Add documentation for connection pool.