factory: global refactoring:
  moves processes to grenlets;
  separates global envs between greenlets with gevent.local.local();
  move global_env to envs.common;
  move connect_env to envs.connect;
  move global_env.stdin_queue to global stdin_queue;