'Initialize a SwiftConnector
:param root: The swift container that will act as Git bare repository
:param conf: A ConfigParser Object'

def __init__(self, root, conf):

    self.conf = conf
    self.auth_ver = self.conf.get('swift', 'auth_ver')
    if (self.auth_ver not in ['1', '2']):
        raise NotImplementedError('Wrong    authentication    version    use    either    1    or    2')
    self.auth_url = self.conf.get('swift', 'auth_url')
    self.user = self.conf.get('swift', 'username')
    self.password = self.conf.get('swift', 'password')
    self.concurrency = (self.conf.getint('swift', 'concurrency') or 10)
    self.http_timeout = (self.conf.getint('swift', 'http_timeout') or 20)
    self.http_pool_length = (self.conf.getint('swift', 'http_pool_length') or 10)
    self.region_name = (self.conf.get('swift', 'region_name') or 'RegionOne')
    self.endpoint_type = (self.conf.get('swift', 'endpoint_type') or 'internalURL')
    self.cache_length = (self.conf.getint('swift', 'cache_length') or 20)
    self.chunk_length = (self.conf.getint('swift', 'chunk_length') or 12228)
    self.root = root
    block_size = (1024 * 12)
    if (self.auth_ver == '1'):
        (self.storage_url, self.token) = self.swift_auth_v1()
    else:
        (self.storage_url, self.token) = self.swift_auth_v2()
    token_header = {'X-Auth-Token': str(self.token)}
    self.httpclient = HTTPClient.from_url(str(self.storage_url), concurrency=self.http_pool_length, block_size=block_size, connection_timeout=self.http_timeout, network_timeout=self.http_timeout, headers=token_header)
    self.base_path = str(posixpath.join(urlparse.urlparse(self.storage_url).path, self.root))
