Remove NetEnv class, and do network enviroment initialization in constructor and destructor of node. Added example for gatherer using node API.