Updated a lot of the gulpfile

may still not yet work correctly for local and dist though
More gulpfile!

Handles browserify, and is ready to inject into local html