Feature: Fail build on threshold number of defects

I've added a feature to fail the build on the number of defects exceeding a threshold number. The config.jelly needs some work the formating looks funny and it would be nice to have some validation on the number field as i am blindly doing Integer.parseint.