Add statsd metrics support.
Merge branch 'metrics-statsd' into develop
Fix Redis cache item encoding.