'GAEProxyHandler setup, init domain/iplist map'

def first_run(self):

    if (not common.PROXY_ENABLE):
        self.resolveUseableIp()
        logging.info('resolve    common.IPLIST_ALIAS    names=%s    to    iplist', list(common.IPLIST_ALIAS))
        common.resolve_iplist()
    random.shuffle(common.GAE_APPIDS)
    self.__class__.handler_plugins['gae'] = GAEFetchPlugin(common.GAE_APPIDS, common.GAE_PASSWORD, common.GAE_PATH, common.GAE_MODE, common.GAE_CACHESOCK, common.GAE_KEEPALIVE, common.GAE_OBFUSCATE, common.GAE_PAGESPEED, common.GAE_VALIDATE, common.GAE_OPTIONS)
    if (not common.PROXY_ENABLE):
        net2 = AdvancedNet2(window=common.GAE_WINDOW, ssl_version=common.GAE_SSLVERSION, dns_servers=common.DNS_SERVERS, dns_blacklist=common.DNS_BLACKLIST)
        for (name, iplist) in common.IPLIST_ALIAS.items():
            net2.add_iplist_alias(name, iplist)
            if (name == 'google_hk'):
                for delay in (30, 60, 150, 240, 300, 450, 600, 900):
                    spawn_later(delay, self.extend_iplist, name)
        net2.add_fixed_iplist(common.IPLIST_PREDEFINED)
        for (pattern, hosts) in common.RULE_MAP.items():
            net2.add_rule(pattern, hosts)
        if common.GAE_CACHESOCK:
            net2.enable_connection_cache()
        if common.GAE_KEEPALIVE:
            net2.enable_connection_keepalive()
        net2.enable_openssl_session_cache()
        self.__class__.net2 = net2
