Updated gulp tasks
Moved environment to constructor