Log errors and warnings with the appropriate methods

Instead of logging errors with `grunt.log.writeln` use `grunt.log.error` and `grunt.log.ok`