factory: modify check_is_root()
factory: add first version of set_global_env() context manager
factory: global refactoring: changing process to grenlets, separates global envs between greenlets with gevent.local.local(); move global_env to envs.common; move connect_env to envs.connect