WIP: plugable connection factory.