Errors: Support a filter to control which errors are reported

Fixes #335
@markelog Can we define a function as a config value in a `.jscsrc`? Supporting a function type was nice for the tests and potentially useful for plugins (maybe @zxqfox has thoughts).