wrapped the handlers in appstats. added APIVersion and mux.Vars to the Context