Add user agent normalization code

https://github.com/mozilla-services/heka/issues/722