Adding user agent module.
Cleaning up metrics collector.
Merge branch 'metrics'