Add a logErrors option to control whether script errors are logged to grunt.

The option currently defaults to false.