Fix error handling

Compile errors would properly report, but cause the gulp task to
hang. This commit abstracts out a resusable error handler that sends
errors to notification center, AND emits an 'end' event, so that gulp
moves on from the task.