Refactor Gulp so that some steps run synchronously
Convert GULP to run some events synchronously, include Mocha