Errors: Support a filter to control which errors are reported

Fixes #335
> if we only have lib/config/configuration and use try/catch to determine if we're in the node or browser environment?

I think this will make the code more complext and lead to the future breaks, because you will have to include every some external modules with hacks (to disallow browserify include it), put many catches. So currently I think we have simpler solution.