Add metrics tracking

Use Emil Stenstrom's lazy-load script

Pass server data to the javascript

Avoid caching of the metrics script with a uid

Include metrics script only for prod and staging