New config approach, using a factory to get info via mongodb or xml for failover.