Use promises in Gulp example

Gulp supports returning promises to make the task not parallel, so just return it, and use promise-like functions for error logging.
Also, fix a couple typos.