Added setting of new relic custom parameters

Added setting of new relic custom parameters

This enables better tracking of times measured by newrelic
Thanks for the hints Damon, I fixed the formatting and changed the ifs due to new info, I'm not sure however if given the current complexity of the conditions there is a way to consolidate and avoid the magic numbers. If you have any ideas let me know.