Add groupingHash support

Constructive criticism is welcome.

I've added an option to provide a `GroupingHashCallback`, which accepts the original `Throwable`, and is given the option to generate a `groupingHash` from the it.

Not sure if this is really required, as a Javascript developer, I'm used to having the option to provide a callback, but maybe this isn't really appropriate.

Regards,
Jacob