Add tests to gulp, make them run on localhost instead of heroku.

Fix some task ordering issues (`gulp-rev-all` and `gulp-mocha` are not gulpy).