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