Log extra data as custom parameters in new relic.

The 'extra' data which usually contains identity type information isn't being logged, this adds support for that.