Integrate gulp with node and fix async task problems