Replaced FIFO queues with LIFO deques in connection pool

This will hopefully reduce the connections turnover and reduce the pool size.