getConnection optimization; implementation of simple connection shuffle

The getConnection looped through all connection and then would return the last one. Changed that so the first available is immediately returned.

The roundRobin config is now used to do a random shuffle if needed.