Moving the connection pool functionnality out of tabletserver.

Now used by tabletserver yet, need review first.
go fmt these files.