Add refactored metrics

This commit uses refactored metrics that improve performance,
implement escaping for statsd and reduce the amount of packets generated in the network.
Are you deleting success/failure metrics because they are redundant with `code`?