Making tweaks to the gulpfile, including error handling and optimising task dependencies.

Signed-off-by: Ben Corlett <bencorlett@me.com>