Adding metric.go
Moving things to metric.go
Changing to ServeHTTP