CXX-336 remove connection pool and associated cruft

includes a small number of trailing whitespace removal noise, but given the pretty large changes to the files involved, I think its acceptable
pass things by const ref, especially if copying them causes a refcount bump, unless you plan to move from them, which you don't here.