Add max connections config variable.

Very small change, but adding ability to limit the number of connections in the pool.