A better gulp file that does some more fun stuff.

This adds some nice things like alerts when things go wrong, but also addresses a case where `npm test` would report success incorrectly.